<?php

namespace plugin\admin\app\model;

use plugin\admin\app\model\Base;

/**
 * @property integer $id 主键(主键)
 */
class V1UserLink extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wa_v1_user_link';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';

    const UPDATED_AT = null;


    /**
     * 关联会员推广链接权限
     */
    public function linkextend()
    {
        return $this->hasMany('plugin\admin\app\model\V1UserLinkExtend','link_id','id');
    }
    
    
}
